package com.david.web.controller;

import com.david.service.feign.client.OrderClient;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author ：David
 * @weibo ：http://weibo.com/mcxiaobing
 * @github: https://github.com/QQ986945193
 */
@RestController
public class OrderController {

    @Autowired
    private OrderClient orderClient;

    @RequestMapping("/ad")
    public String add() throws Exception {
        String count = orderClient.ad();
        return count+"";
    }
    @RequestMapping("/get")
    public String get() throws Exception {
        String count = orderClient.get();
        return count+"";
    }
}